package com.jhhc.RHDB.Data.ServiceImpl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jhhc.RHDB.Data.Pojo.ST_RIVER_R;

import com.jhhc.RHDB.Data.Service.ST_RIVER_R5Service;
import com.jhhc.RHDB.Data.Dao.ST_RIVER_R5Mapper;

@Service
@Transactional
public class ST_RIVER_R5ServiceImpl implements ST_RIVER_R5Service {
    @Autowired
    private ST_RIVER_R5Mapper ST_RIVER_R5Mapper;


    @Override
    public int DeleteData(String Stations, String startTime, String endTime) {
        // TODO Auto-generated method stub
        return ST_RIVER_R5Mapper.DeleteData(Stations, startTime, endTime);
    }


//	@Override
//	public List<ST_RIVER_R> selectByStationArry(String Stations, String startTime, String endTime) {
//		// TODO Auto-generated method stub
//		return ST_RIVER_R5Mapper.selectByStationArry(Stations, startTime, endTime);
//	}
//
//	public String ArryToString (List<String> Stations) {
//		// TODO Auto-generated method stub
//		String stcdArr="";
//		for(int i=0;i<Stations.size();i++){
//			if(!stcdArr.trim().isEmpty()||!stcdArr.trim().equals("")){
//			stcdArr=Stations.get(i)+","+stcdArr;
//			}else{
//				stcdArr=Stations.get(i);
//			}		
//			
//		}
//		System.out.println("这是stcdarr"+stcdArr);
//		return stcdArr;
//	}


    @Override
    public Integer update(String stcd, String time) {
        // TODO Auto-generated method stub
        return null;
    }


    @Override
    public List<ST_RIVER_R> selectByStationArrys(List<String> Stations, String startTime, String endTime) {
        // TODO Auto-generated method stub
        return ST_RIVER_R5Mapper.selectByStationArrys(Stations, startTime, endTime);
    }

    @Override
    public List<ST_RIVER_R> selectRIVERNewEstData(List<String> stcd) {
        return ST_RIVER_R5Mapper.selectRIVERNewEstData(stcd);
    }


    @Override
    public int InsertData(ST_RIVER_R t) {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public List<ST_RIVER_R> selectByStationArry(String Stations, String startTime, String endTime) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public ST_RIVER_R selectStartDate(String stcd) {
        return ST_RIVER_R5Mapper.selectStartDate(stcd);
    }

    @Override
    public ST_RIVER_R selectEndDate(String stcd) {
        return ST_RIVER_R5Mapper.selectEndDate(stcd);
    }
}
